"""
 @time: 2019/6/6 15:52
 
 @Author: Unicorn
"""
import tensorflow as tf

# 更替值, 与session run时 feed_dict参数绑定
inpu1 = tf.placeholder(tf.float32)  # 常用float32 的数据形式
input2 = tf.placeholder(tf.float32)
output = tf.multiply(inpu1, input2)
with tf.Session() as sess:
    print(sess.run(output, feed_dict={inpu1: [7.], input2: [2.]}))
